package com.sp.api.springbootapi.controller;

import com.sp.api.springbootapi.service.GoodsService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping(value = "/goods")
public class GoodsController {

	@Resource
	private GoodsService goodsService;


	@GetMapping(value = "/query")
	public ResponseEntity<Object> query(HttpServletRequest request) throws Exception {

		goodsService.getGoodsById();
		return new ResponseEntity<Object>(null, HttpStatus.OK);
	}



}
